
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>参数接收演示</title>
    <style>
        body { font-family: Arial, sans-serif; max-width: 800px; margin: 0 auto; padding: 20px }
        .param-box { background: #f5f5f5; padding: 15px; margin: 10px 0; border-radius: 5px }
        pre { overflow-x: auto; background: #eee; padding: 10px }
    </style>
</head>
<body>
    <h1>URL参数接收器</h1>
    
    <div class="param-box">
        <h2>标准查询参数</h2>
        <div id="query-params">正在解析...</div>
    </div>

    <script>
        // 解析标准查询参数
        const urlParams = new URLSearchParams(window.location.search);
        var urlstr = urlParams.toString();
        var index = urlstr.lastIndexOf('%3Ftoken');
        if (index !== -1) {
            urlstr = urlstr.substring(0, index);
        }
        urlstr = urlstr.replace('url=','');
        urlstr = decodeURIComponent(urlstr);
        console.log(urlstr);
        document.getElementById('query-params').innerHTML = urlstr;
        window.location.href = urlstr;
    </script>
</body>
</html>
